package com.qyhl.webtv.commonlib.entity.act;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created  on 2017/12/25.
 * @author helin
 */
public class ActivityViewDetailBean implements Parcelable {

    /**
     * ID
     */
    private Integer id;

    /**
     * 组件名称
     */
    private String viewText;

    /**
     * 组件类型ID
     */
    private Integer typeId;

    /**
     * 组件排序
     */
    private Integer sort;

    /**
     * 组件描述
     */
    private String description;

    /**
     * 活动ID
     */
    private Integer activityId;

    /**
     * 是否需要
     */
    private Integer isRequired;


    /**
     * 是否展示
     */
    private Integer isShow;


    public Integer getIsShow() {
        return isShow;
    }

    public void setIsShow(Integer isShow) {
        this.isShow = isShow;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getViewText() {
        return viewText;
    }

    public void setViewText(String viewText) {
        this.viewText = viewText;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getActivityId() {
        return activityId;
    }

    public void setActivityId(Integer activityId) {
        this.activityId = activityId;
    }

    public Integer getIsRequired() {
        return isRequired;
    }

    public void setIsRequired(Integer isRequired) {
        this.isRequired = isRequired;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeValue(this.id);
        dest.writeString(this.viewText);
        dest.writeValue(this.typeId);
        dest.writeValue(this.sort);
        dest.writeString(this.description);
        dest.writeValue(this.activityId);
        dest.writeValue(this.isRequired);
    }

    public ActivityViewDetailBean() {
    }

    protected ActivityViewDetailBean(Parcel in) {
        this.id = (Integer) in.readValue(Integer.class.getClassLoader());
        this.viewText = in.readString();
        this.typeId = (Integer) in.readValue(Integer.class.getClassLoader());
        this.sort = (Integer) in.readValue(Integer.class.getClassLoader());
        this.description = in.readString();
        this.activityId = (Integer) in.readValue(Integer.class.getClassLoader());
        this.isRequired = (Integer) in.readValue(Integer.class.getClassLoader());
    }

    public static final Creator<ActivityViewDetailBean> CREATOR = new Creator<ActivityViewDetailBean>() {
        @Override
        public ActivityViewDetailBean createFromParcel(Parcel source) {
            return new ActivityViewDetailBean(source);
        }

        @Override
        public ActivityViewDetailBean[] newArray(int size) {
            return new ActivityViewDetailBean[size];
        }
    };
}
